<?php
    if(!isset(Yii::app()->user->id)|| (isset(Yii::app()->user->id)&&Yii::app()->user->id!=15))
    {
        $this->redirect(Yii::app()->request->baseUrl);
    }
?>

<script type="text/javascript">
			//<![CDATA[
				CKEDITOR.replace( 'textarea_editor',
					{
						skin : 'v2'
					});
			//]]>
			</script>
<h2>Bomb Game</h2>
<h4>Luật chơi:</h4>
<form action="" method="post">
	<textarea class="ckeditor" id="textarea_editor" name='textarea_id'>
		<?php if(isset($rule)){echo $rule['value'];}?>
	</textarea><br/>
	<center>
		<input class='button active' type="submit" name='btn_changerule' value='Save Change'></input>
	</center>
</form>
